projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c45862
)
gpio: atmel_pio4: add drive strength macros
author
Ludovic Desroches
<
[email protected]
>
Mon, 23 Apr 2018 07:59:49 +0000
(10:59 +0300)
committer
Tom Rini
<
[email protected]
>
Tue, 8 May 2018 13:07:35 +0000
(09:07 -0400)
Macros for drive strength configuration were missing.
Signed-off-by: Ludovic Desroches <
[email protected]
>
arch/arm/mach-at91/include/mach/atmel_pio4.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-at91/include/mach/atmel_pio4.h
b/arch/arm/mach-at91/include/mach/atmel_pio4.h
index 81e0e9f3322a8376efbb9b4b940ecd3f546c0789..b7d6f5a10297771aa6b7885a87e9adab939caa49 100644
(file)
--- a/
arch/arm/mach-at91/include/mach/atmel_pio4.h
+++ b/
arch/arm/mach-at91/include/mach/atmel_pio4.h
@@
-47,6
+47,10
@@
struct atmel_pio4_port {
#define ATMEL_PIO_IFSCEN_MASK BIT(13)
#define ATMEL_PIO_OPD_MASK BIT(14)
#define ATMEL_PIO_SCHMITT_MASK BIT(15)
+#define ATMEL_PIO_DRVSTR_MASK GENMASK(17, 16)
+#define ATMEL_PIO_DRVSTR_LO (1 << 16)
+#define ATMEL_PIO_DRVSTR_ME (2 << 16)
+#define ATMEL_PIO_DRVSTR_HI (3 << 16)
#define ATMEL_PIO_CFGR_EVTSEL_MASK GENMASK(26, 24)
#define ATMEL_PIO_CFGR_EVTSEL_FALLING (0 << 24)
#define ATMEL_PIO_CFGR_EVTSEL_RISING (1 << 24)